From: Paul Eggert Date: Wed, 23 Mar 2011 08:09:13 +0000 (-0700) Subject: * term.c (produce_glyphless_glyph): Remove unnecessary test. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4269^2~15^2~5 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f1df822a23321d72e053c83448b661201ff9f0ac;p=emacs.git * term.c (produce_glyphless_glyph): Remove unnecessary test. --- diff --git a/src/ChangeLog b/src/ChangeLog index cbf5ffb85eb..2053b638bac 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-03-23 Paul Eggert + * term.c (produce_glyphless_glyph): Remove unnecessary test. + * cm.c (calccost): Turn while-do into do-while, for clarity. Fix more problems found by GCC 4.5.2's static checks. diff --git a/src/term.c b/src/term.c index e84bbe125f8..94fafd73ed8 100644 --- a/src/term.c +++ b/src/term.c @@ -1952,7 +1952,7 @@ produce_glyphless_glyph (struct it *it, int for_no_font, Lisp_Object acronym) it->pixel_width = len; it->nglyphs = len; - if (len > 0 && it->glyph_row) + if (it->glyph_row) append_glyphless_glyph (it, face_id, str); }